home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / print.idb / usr / share / catman / a_man / cat1 / lpd.z / lpd
Encoding:
Text File  |  1997-07-30  |  7.7 KB  |  199 lines

  1.  
  2.  
  3.  
  4. LLLLPPPPDDDD((((1111MMMM))))                         PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                         LLLLPPPPDDDD((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      lpd - BSD line printer daemon
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////eeeettttcccc////llllppppdddd [ ----llll ] [ port # ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _L_p_d is the line printer daemon (spool area handler) and is normally
  16.      invoked at boot time from the /_e_t_c/_i_n_i_t._d/_b_s_d_l_p_r file. _c_h_k_c_o_n_f_i_g (_1_M) can
  17.      be used to enable or disable lpd from starting at boot time ("chkconfig
  18.      bsdlpr off" or "chkconfig bsdlpr on").  At startup, _l_p_d makes a single
  19.      pass through the _p_r_i_n_t_c_a_p(4) file to find out about the existing printers
  20.      and prints any files left after a crash. It then uses the system calls
  21.      _l_i_s_t_e_n(2) and _a_c_c_e_p_t(2) to receive requests to print files in the queue,
  22.      transfer files to the spooling area, display the queue, or remove jobs
  23.      from the queue.  In each case, it forks a child to handle the request so
  24.      the parent can continue to listen for more requests.  The Internet port
  25.      number used to rendezvous with other processes is normally obtained with
  26.      _g_e_t_s_e_r_v_b_y_n_a_m_e(3) but can be changed with the _p_o_r_t# argument.  The ----llll flag
  27.      causes _l_p_d to log valid requests received from the network. This can be
  28.      useful for debugging purposes.
  29.  
  30.      Access control is provided by two means. First, All requests must come
  31.      from one of the machines listed in the file /_e_t_c/_h_o_s_t_s._e_q_u_i_v or
  32.      /_e_t_c/_h_o_s_t_s._l_p_d.  Second, if the ``rs'' capability is specified in the
  33.      _p_r_i_n_t_c_a_p entry for the printer being accessed, _l_p_r requests will only be
  34.      honored for those users with accounts on the machine with the printer.
  35.  
  36.      The file _m_i_n_f_r_e_e in each spool directory contains the number of disk
  37.      blocks to leave free so that the line printer queue won't completely fill
  38.      the disk.  The _m_i_n_f_r_e_e file can be edited with your favorite text editor.
  39.  
  40.      If _l_p_d receives a request to print to a printer that is not specified in
  41.      the _p_r_i_n_t_c_a_p file then _l_p_d will forward the print request to _l_p_s_c_h_e_d to
  42.      allow _l_p_s_c_h_e_d to attempt to service the request.
  43.  
  44.      The file _l_o_c_k in each spool directory is used to prevent multiple daemons
  45.      from becoming active simultaneously, and to store information about the
  46.      daemon process for _l_p_r(1), _l_p_q(1), and _l_p_r_m(1).  After the daemon has
  47.      successfully set the lock, it scans the directory for files beginning
  48.      with _c_f.  Lines in each _c_f file specify files to be printed or non-
  49.      printing actions to be performed.  Each such line begins with a key
  50.      character to specify what to do with the remainder of the line.
  51.  
  52.      J    Job Name.  String to be used for the job name on the burst page.
  53.  
  54.      C    Classification.  String to be used for the classification line on
  55.           the burst page.
  56.  
  57.      L    Literal.  The line contains identification info from the password
  58.           file and causes the banner page to be printed.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. LLLLPPPPDDDD((((1111MMMM))))                         PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                         LLLLPPPPDDDD((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      T    Title.  String to be used as the title for _p_r(1).
  75.  
  76.      H    Host Name.  Name of the machine where _l_p_r was invoked.
  77.  
  78.      P    Person.  Login name of the person who invoked _l_p_r.  This is used to
  79.           verify ownership by _l_p_r_m.
  80.  
  81.      M    Send mail to the specified user when the current print job
  82.           completes.
  83.  
  84.      f    Formatted File.  Name of a file to print which is already formatted.
  85.  
  86.      l    Like ``f'' but passes control characters and does not make page
  87.           breaks.
  88.  
  89.      p    Name of a file to print using _p_r(1) as a filter.
  90.  
  91.      t    Troff File.  The file contains _t_r_o_f_f(1) output (cat phototypesetter
  92.           commands).
  93.  
  94.      n    Ditroff File.  The file contains device independent troff output.
  95.  
  96.      d    DVI File.  The file contains _T_e_x(l) output (DVI format from
  97.           Stanford).
  98.  
  99.      g    Graph File.  The file contains data produced by _p_l_o_t(3X).
  100.  
  101.      c    Cifplot File. The file contains data produced by _c_i_f_p_l_o_t.
  102.  
  103.      v    The file contains a raster image.
  104.  
  105.      r    The file contains text data with FORTRAN carriage control
  106.           characters.
  107.  
  108.      1    Troff Font R. Name of the font file to use instead of the default.
  109.  
  110.      2    Troff Font I. Name of the font file to use instead of the default.
  111.  
  112.      3    Troff Font B. Name of the font file to use instead of the default.
  113.  
  114.      4    Troff Font S. Name of the font file to use instead of the default.
  115.  
  116.      W    Width. Changes the page width (in characters) used by _p_r(1) and the
  117.           text filters.
  118.  
  119.      I    Indent.  The number of characters to indent the output by (in
  120.           ascii).
  121.  
  122.      U    Unlink.  Name of file to remove upon completion of printing.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. LLLLPPPPDDDD((((1111MMMM))))                         PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                         LLLLPPPPDDDD((((1111MMMM))))
  137.  
  138.  
  139.  
  140.      N    File name.  The name of the file which is being printed, or a blank
  141.           for the standard input (when _l_p_r is invoked in a pipeline).
  142.  
  143.      If a file can not be opened, a message will be logged via _s_y_s_l_o_g(3) using
  144.      the _L_O_G__L_P_R facility.  _L_p_d will try up to 20 times to reopen a file it
  145.      expects to be there, after which it will skip the file to be printed.
  146.  
  147.      _L_p_d uses _f_l_o_c_k(2) to provide exclusive access to the lock file and to
  148.      prevent multiple daemons from becoming active simultaneously.  If the
  149.      daemon should be killed or die unexpectedly, the lock file need not be
  150.      removed.  The lock file is kept in a readable ASCII form and contains two
  151.      lines.  The first is the process id of the daemon and the second is the
  152.      control file name of the current job being printed.  The second line is
  153.      updated to reflect the current status of _l_p_d for the programs _l_p_q(1) and
  154.      _l_p_r_m(1).
  155.  
  156. FFFFIIIILLLLEEEESSSS
  157.      /etc/printcap         printer description file
  158.      /usr/spool/*          spool directories
  159.      /usr/spool/*/minfree  minimum free space to leave
  160.      /dev/lp*              line printer devices
  161.      /dev/printer          socket for local requests
  162.      /etc/hosts.equiv      lists machine names allowed printer access
  163.      /etc/hosts.lpd        lists machine names allowed printer access,
  164.                            but not under same administrative control.
  165.  
  166. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  167.      lpc(1M), pac(1), lpr(1), lpq(1), lprm(1), syslog(3), printcap(4)
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.